import request from '@/utils/request'

export function login(userName, password) {
    const data = {
        userName,
        password
    }
    return request({
        url: '/user/login',
        headers: {
            isToken: false
        },
        method: 'post',
        data: data
    })
}

export function logout() {
    return request({
        url: '/user/logout',
        method: 'post',
    })
}